package com.oa.admin.service;

import com.joneying.common.web.response.Resp;
import com.oa.admin.dto.OutApplyAddDTO;
import com.oa.admin.dto.OutApplyListDTO;
import com.oa.admin.vo.OutApplyListVO;
import com.oa.admin.vo.OutApplyDetailVO;
import com.oa.core.PageResult;
import com.oa.admin.entity.OutApply;
import com.baomidou.mybatisplus.service.IService;
import com.oa.core.exception.BusinessException;
import com.oa.core.exception.DataIsEmptyException;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 外出出差申请表 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface IOutApplyService extends IService<OutApply> {

    PageResult<OutApplyListVO> findOutApplyList(OutApplyListDTO outApplyListDTO);

    Resp addOutApply(OutApplyAddDTO outApplyAddDTO) throws BusinessException, DataIsEmptyException;

    OutApplyDetailVO findOutApplyDetailById(String id);

    void export(OutApplyListDTO outApplyListDTO, HttpServletResponse response);
}
